package com.dcits.electronic_account.utils;

import static com.dcits.electronic_account.constant.Constant.illegalString;

/**
 * @Author: CZJ
 * @Date： 2022/6/30
 */
public class LegalStringCheckUtil {

    public static boolean legalStringCheck(String content) {
        if (content == null) return true;
        for (int i = 0; i < content.length(); i++) {
            for (int j = 0; j < illegalString.length(); j++) {
                if (content.charAt(i) == illegalString.charAt(j)) {
                    return false;
                }
            }
        }
        return true;
    }
}
